/* 引入字体 */
@import url('./googleapiscss2.css');

/* 基础样式 */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f9fafb;
  color: #334155;
  margin: 0;
  padding: 0;
}

/* 颜色变量 */
:root {
  --primary: #409eff; /* Element 框架的主要颜色 */
  --secondary: #67c23a; /* Element 框架的次要颜色 */
  --neutral-100: #f5f7fa;
  --neutral-200: #e5e6eb;
  --neutral-300: #c9cdd4;
  --neutral-400: #86909c;
  --neutral-500: #4e5969;
  --neutral-600: #272e3b;
  --neutral-700: #1d2129;
  --success: #67c23a;
  --warning: #e6a23c;
  --danger: #f56c6c;
}

/* 工具类 */
.container {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.max-w-md {
  max-width: 28rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.text-[clamp(1.5rem,5vw,2rem)] {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.font-bold {
  font-weight: 700;
}

.text-primary {
  color: var(--primary);
}

.bg-white {
  background-color: white;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.p-5 {
  padding: 1.25rem;
}

.border {
  border-width: 1px;
}

.border-neutral-200 {
  border-color: var(--neutral-200);
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.flex.items-center {
  display: flex;
  align-items: center;
}

.flex.loading-center {
  align-items: center;
}

.mr-3 {
  margin-right: 0.75rem;
}

.text-neutral-600 {
  color: var(--neutral-600);
}

.font-medium {
  font-weight: 500;
}

.text-neutral-800 {
  color: var(--neutral-700);
}

.flex.items-start {
  display: flex;
  align-items: flex-start;
}

.mt-1 {
  margin-top: 0.25rem;
}

.word-wrap-anywhere {
  word-wrap: anywhere;
}

.mb-4 {
  margin-bottom: 1rem;
}

.tag-scroll {
  white-space: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  padding-right: 0.5rem;
}

.tag-scroll::-webkit-scrollbar {
  height: 0.25rem;
}

.tag-scroll::-webkit-scrollbar-track {
  background: var(--neutral-100);
  border-radius: 9999px;
}

.tag-scroll::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 9999px;
}

.mt-3 {
  margin-top: 0.75rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.bg-primary {
  background-color: var(--primary);
}

.text-white {
  color: white;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.justify-center {
  justify-content: center;
}

.relative {
  position: relative;
}

.mb-8 {
  margin-bottom: 2rem;
}

.w-full {
  width: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.aspect-video {
  aspect-ratio: 16/9;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bg-black/30 {
  background-color: rgba(0, 0, 0, 0.3);
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.rounded-full {
  border-radius: 9999px;
}

.bg-white/80 {
  background-color: rgba(255, 255, 255, 0.8);
}

.hidden {
  display: none;
}

.absolute {
  position: absolute;
}

.object-cover {
  object-fit: cover;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.max-w-[160px] {
  max-width: 160px;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-50 {
  z-index: 50;
}

.bg-black/50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.flex-col {
  flex-direction: column;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.border-4 {
  border-width: 4px;
}

.border-t-transparent {
  border-top-color: transparent;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bottom-8 {
  bottom: 2rem;
}

.left-1/2 {
  left: 50%;
}

.transform {
  transform: translateX(-50%);
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.opacity-0 {
  opacity: 0;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* 自定义工具类 */
.btn-hover-effect {
  transition: all 0.3s ease;
  border: none; /* 移除边框 */
  font-size: 14px; /* 调整字体大小 */
  font-weight: 500; /* 调整字体粗细 */
}

.btn-hover-effect:hover {
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); /* Element 框架的悬停阴影 */
  transform: translateY(-1px); /* 轻微上移 */
}

.btn-hover-effect:active {
  transform: translateY(0);
}

.scale-on-hover {
  transition: transform 0.3s ease;
}

.scale-on-hover:hover {
  transform: scale(1.05);
}

.bg-green-500 {
  background-color: #22c55e;
}

.bg-red-500 {
  background-color: #ef4444;
}

.bg-yellow-500 {
  background-color: #eab308;
}

.bg-blue-500 {
  background-color: #3b82f6;
}

/* 卡片样式优化 */
.bg-white.rounded-xl.shadow-sm.p-5.border.border-neutral-200 {
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); /* 增加阴影 */
  border: none; /* 移除边框 */
}


#toast-icon {
  margin-right: 8px;
}